import pandas as pd
import altair as alt

df = pd.read_csv("simulated_vega_stocks.csv")
df['date'] = pd.to_datetime(df['date'])

chart = alt.Chart(df).mark_area().encode(
    x='date:T',
    y='price:Q',
    color='symbol:N',
    row=alt.Row('symbol:N')
).properties(width=600, height=80)

chart.save("simulated_stocks.png", scale_factor=2.0)
